const initialState = {}
export const user = (state = initialState, action) => {
  if (action.type === 'user/getUserInfo') {
    return action.payload
  }
  if (action.type === 'user/clearInfo') {
    return {}
  }
  return state
}